package com.topvision.myviewtest.recycler.itemdecoration;

import android.graphics.Canvas;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * @author lucy
 * @date 2018-03-28 13:56
 * @description //TODO
 */

public class MyItemDecoration extends RecyclerView.ItemDecoration {

    /* 可以实现类似padding的效果 */
    @Override
    public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
        super.onDraw(c, parent, state);
    }

    /* 可以实现类似绘制背景的效果，内容在上面 */
    @Override
    public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {
        super.onDrawOver(c, parent, state);
    }

    /* 可以绘制在内容的上面，覆盖内容 */
    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        super.getItemOffsets(outRect, view, parent, state);
    }
}
